<?php
/**
 * @author lazy <729011771@qq.com>
 * Date: 2019-08-13
 * Time: 15:12
 */

namespace App\Common;

class ConstCode
{
    // 成功
    const SUCCESS = 0;

    // 是
    const YES = 1;

    // 否
    const NO = 0;

    // 正常
    const NORMAL = 1;

    // 删除
    const DEL = 9;

    // 默认排序依据
    const COLUMN = 'created_at';

    const COLUMN_SORT = 'sort';

    const COLUMN_UPDATE = 'updated_at';
    const COLUMN_ORDER_NUM = 'orderNum';

    // 默认排序方式
    const DIRECTION = 'DESC';

    const ASC_DIRECTION = 'ASC';

    // 默认页码
    const PAGE = 1;

    // 默认每页条数
    const PER_PAGE = 15;

    // 0
    const ZERO = 0;
    //2
    const SECOND=2;
}
